package www.itheima.compiterdemo;

public class keyboard implements USB {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public keyboard(String name) {
        this.name = name;
    }

    @Override
    public void connect() {
        System.out.println("打开USB接口~~，并接入电脑");

    }

    @Override
    public void unconnect() {
        System.out.println("弹出USB接口~~，并拔出电脑");

    }
    public void click(){
        System.out.println("在屏幕上打字，老铁"+name);
    }
}
